import axios from "@/utils/http"

export  function  kaoshi(obj:any){
    console.log()
    return axios({
        url:"/back/paper/queryPaperByPaperDto",
        method:"post",
        data: {
        "limit": obj.limit,
            "name":obj.name,
            "page": obj.page,
            "status": 0,
            "teacherId": 0
    }
    })
}
 // export function idcha(id:any){
 //    return axios({
 //        url:`/paper/getById/${id}`,
 //        method:"get",
 //    })
 // }

 export function append(name:any,endTime:any,startTime:any){
    return axios({
        url:"/back/paper/addPaper",
        method:"post",
        data:{
            "endTime": endTime,
            "examTime": "",
            "id": 0,
            "name": name,
            "startTime": startTime
        }
    })
 }
 export function DeletingEx(id:any){
    return axios({
        url:`/back/paper/deletePaper/${id}`,
        method:"get"
    })
 }